{"version":3,"file":"script.min.js","sources":["script.js"],"names":["JCSmartFilter","ajaxURL","viewMode","this","form","timer","cacheKey","cache","prototype","keyup","input","clearTimeout","setTimeout","BX","delegate","reload","click","checkbox","position","pos","findParent","tag","values","name","value","gatherInputsValues","findChildren","RegExp","i","length","curFilterinput","postHandler","ajax","loadJSON","values2post","updateItem","PID","arItem","PROPERTY_TYPE","PRICE","trackBar","window","ENCODED_ID","VALUES","MIN","FILTERED_VALUE","setMinFilteredValue","MAX","setMaxFilteredValue","hasOwnProperty","control","CONTROL_ID","label","document","querySelector","DISABLED","addClass","parentNode","removeClass","innerHTML","ELEMENT_COUNT","result","fromCache","hrefFILTER","url","curProp","modef","modef_num","ITEMS","FILTER_URL","href","util","htmlspecialcharsback","FILTER_AJAX_URL","COMPONENT_CONTAINER_ID","bind","e","insertToNode","PreventDefault","INSTANT_RELOAD","style","display","findChild","class","appendChild","elements","el","disabled","type","toLowerCase","checked","j","options","selected","post","current","p","indexOf","substring","rest","pp","hideFilterProps","element","easing","obj","filterBlock","className","hasClass","duration","start","opacity","height","offsetHeight","finish","transition","transitions","quart","step","state","complete","setAttribute","animate","obj_children_height","showDropDownPopup","popupId","contentNode","PopupWindowManager","create","autoHide","offsetLeft","offsetTop","overlay","draggable","restrict","closeByEsc","content","show","selectDropDownItem","controlId","wrapContainer","currentOption","getCurrentPopup","close","namespace","Iblock","SmartFilter","arParams","leftSlider","rightSlider","tracker","trackerWrap","minInput","minInputId","maxInput","maxInputId","minPrice","parseFloat","maxPrice","curMinPrice","curMaxPrice","fltMinPrice","fltMaxPrice","precision","priceDiff","leftPercent","rightPercent","fltMinPercent","fltMaxPercent","colorUnavailableActive","colorAvailableActive","colorAvailableInactive","isTouch","init","documentElement","proxy","event","onMoveLeftSlider","onMoveRightSlider","onInputChange","left","right","getXCoord","elem","box","getBoundingClientRect","body","docElem","scrollLeft","pageXOffset","clientLeft","Math","round","getPageX","pageX","targetTouches","clientX","html","recountMinPrice","newMinPrice","toFixed","smartFilter","recountMaxPrice","newMaxPrice","leftInputValue","makeLeftSliderMove","rightInputValue","makeRightSliderMove","recountPrice","areBothSlidersMoving","countNewLeft","trackerXCoord","rightEdge","offsetWidth","newLeft","ondragstart","onmousemove","onmouseup","ontouchmove","ontouchend","touchend"],"mappings":"AAAA,QAASA,eAAcC,EAASC,GAE/BC,KAAKF,QAAUA,CACfE,MAAKC,KAAO,IACZD,MAAKE,MAAQ,IACbF,MAAKG,SAAW,EAChBH,MAAKI,QACLJ,MAAKD,SAAWA,EAGjBF,cAAcQ,UAAUC,MAAQ,SAASC,GAExC,KAAKP,KAAKE,MACV,CACCM,aAAaR,KAAKE,OAEnBF,KAAKE,MAAQO,WAAWC,GAAGC,SAAS,WACnCX,KAAKY,OAAOL,IACVP,MAAO,KAGXH,eAAcQ,UAAUQ,MAAQ,SAASC,GAExC,KAAKd,KAAKE,MACV,CACCM,aAAaR,KAAKE,OAGnBF,KAAKE,MAAQO,WAAWC,GAAGC,SAAS,WACnCX,KAAKY,OAAOE,IACVd,MAAO,KAGXH,eAAcQ,UAAUO,OAAS,SAASL,GAEzC,GAAIP,KAAKG,WAAa,GACtB,CAEC,KAAKH,KAAKE,MACV,CACCM,aAAaR,KAAKE,OAEnBF,KAAKE,MAAQO,WAAWC,GAAGC,SAAS,WACnCX,KAAKY,OAAOL,IACVP,MAAO,IACV,QAEDA,KAAKG,SAAW,GAEhBH,MAAKe,SAAWL,GAAGM,IAAIT,EAAO,KAC9BP,MAAKC,KAAOS,GAAGO,WAAWV,GAAQW,IAAM,QACxC,IAAIlB,KAAKC,KACT,CACC,GAAIkB,KACJA,GAAO,IAAMC,KAAM,OAAQC,MAAO,IAClCrB,MAAKsB,mBAAmBH,EAAQT,GAAGa,aAAavB,KAAKC,MAAOiB,IAAO,GAAIM,QAAO,mBAAoB,MAAO,MAEzG,KAAK,GAAIC,GAAI,EAAGA,EAAIN,EAAOO,OAAQD,IAClCzB,KAAKG,UAAYgB,EAAOM,GAAGL,KAAO,IAAMD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